import Vue from "vue";
import Vuex from "vuex";
import createPersistedstate from "vuex-persistedstate";
import user from "./modules/user";
import getters from "./getters";

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    user,
  },
  getters,
  // plugins: [
  //   createPersistedstate({
  //     key: "erabbit-client-pc-store",
  //     paths: ["user"],
  //   }),
  // ],
});

export default store;
